var ALL_OPTION = "ALL";
var CMS_ASSETS_PATH = '/var/assets/cms/';
var CMS_ASSETS_THUMB_PATH = '/var/assets/cms/_thumbs/';
var USER_DEF_PRIVILEGE_PREFIX = 'PAGE_';
var USER_DEF_PRIVILEGE_SURFIX = '_ACCESS';
var USER_DEF_DEFAULT_PRIVILEGE = 'HOME_INDEX';
$.ajaxSetup ({
    cache: false
});
var ajax_load = "<img src='/public/images/icons/ajax_loading.gif' alt='Đang tải...' />";


function downloadFile(fileId){
    window.location='/admin/resource/download?id='+fileId;

}

function showSucessDialog(){
    $.messager.show({
        title:"Thông báo",
        msg:"Thành công"
    });
}

function showErrDialog(result){
    $.messager.show({
        title: "Thông báo lỗi",
        msg: result.msg
    });
}


